package com.sunfeng.gulimall.ware;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 配置Mybits  MapperScan@EnableFeignClients(basePackages = "com.sunfeng.gulimall.product.feign")// 开启远程访问功能
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.sunfeng.gulimall.ware.dao")
@EnableFeignClients(basePackages = "com.sunfeng.gulimall.ware.feign")
public class GuLiMallWareApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuLiMallWareApplication.class, args);
    }

}
